import React from 'react';
import ReactDOM from 'react-dom';

export default class ComponentBodyChild extends React.Component {
	// 子页面通过事件传参给父页面
	render() {
		return (
			<div>
			<p>子页面输入：<input type="text" onChange={this.props.handleChildValueChange}/></p>
			<p>父页面传过来的参数：{this.props.userid} {this.props.username} {this.props.id}</p>
			</div>
		)
	}

}